package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_storage")
public class FileStorage extends Model<FileStorage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("fileNo")
    private Long fileNo;

    @TableField("fileName")
    private String fileName;

    @TableField("fileUrl")
    private String fileUrl;

    @TableField("fileType")
    private Integer fileType;

    @TableField("fileSize")
    private Long fileSize;


    public static final String ID = "id";

    public static final String FILENO = "fileNo";

    public static final String FILENAME = "fileName";

    public static final String FILEURL = "fileUrl";

    public static final String FILETYPE = "fileType";

    public static final String FILESIZE = "fileSize";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
